package com.qunar.forex.exchange.web.controller;

import com.qunar.forex.exchange.handler.TestService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by liugh on 2016/9/27.
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @Resource
    TestService testService;

    @RequestMapping("/api")
    @ResponseBody
    public String getOrderCount()
    {

        int r = testService.getOrderCount();

        return Integer.toString(r);

    }
}
